class Float
  def uf
    self / 1_000_000
  end
  def nf
    self / 1_000_000_000
  end
  def pf
    self / 1_000_000_000_000
  end
end

class Capacitor
  attr_accessor :capacitance, :voltage

  def initialize(cap, volt)
    @capacitance = cap
    @voltage = volt
  end

  def *(cap2)
    Capacitor.new(1/((1/(capacitance))+(1/cap2.capacitance)), voltage+cap2.voltage) # Here I've just embedded the appropriate behavior for 
                                                                                    # series capacitor behavior into the operator
  end
  def /(cap2)
    Capacitor.new((capacitance + cap2.capacitance), voltage)
  end
  def **(power)
    c=self
    (power-1).times{c=c*self}
    c
  end
  def %(power)
    c=self
    (power-1).times{c=c/self}
    c
  end
end
